package com.guigu.xm.lq.mapper;

import com.github.pagehelper.Page;
import com.guigu.xm.pojo.SysUserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface SysUserRoleMapper {
    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    List<SysUserRole> QueryUser(@Param("login_id") String login_id ,@Param("name") String name);
    @Update("update sys_user_role set role_id=#{role_id} where user_id=#{user_id} ")
    int updateRole(@Param("user_id") String user_id,@Param("role_id")String role_id );
}